package com.tyun.modules.sys.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobKey;

import java.util.Date;

/**
 * @author taocongcong
 * @create 2018-09-20 17:49
 */
public class ScheduleTest implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobKey jobKey = context.getTrigger().getJobKey();
        System.out.print("JobKey：" + jobKey + "，ScheduleTest：" + new Date() + "\n");
    }
}
